/*
 *  nautilus-svn-module.c - Subversion extension for Nautilus
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Author: Jack Xu Hong <jack.xu.hong@gmail.com>
 *
 */

#include <config.h>

#include <libnautilus-extension/nautilus-extension-types.h>

#include "nautilus-svn-extension.h"

/* Extension module functions.  These functions are defined in
 * nautilus-extensions-types.h, and must be implemented by all
 * extensions. */

/* Initialization function.  In addition to any module-specific
 * initialization, any types implemented by the module should
 * be registered here. */
void
nautilus_module_initialize (GTypeModule *module)
{
	g_print ("Initializing nautilus-svn extension\n");

	nautilus_svn_extension_register_type (module);
}

/* Perform module-specific shutdown. */
void
nautilus_module_shutdown (void)
{
	g_print ("Shutting down nautilus-svn extension\n");
}

/* List all the extension types.  */
void
nautilus_module_list_types (const GType **types,
                            int         *num_types)
{
	static GType type_list[1];

	type_list[0] = NAUTILUS_TYPE_SVN_EXTENSION;

	*types = type_list;
	*num_types = 1;
}
